package com.jt.www.model.woxuebao;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jt.www.enums.woxuebao.HandlerStatusEnum;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


public class InsBatchDto {

    @ApiModelProperty(value = "产品名称")
    private String proName;

    @ApiModelProperty(value = "订单号")
    private String orderNo;

    @ApiModelProperty(value = "保单号")
    private String policyNo;

    @ApiModelProperty(value = "投保单号")
    private String tbNo;

    @ApiModelProperty(value = "投保时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date tbTime;

    @ApiModelProperty(value = "保险起期")
    private String startYear;

    @ApiModelProperty(value = "保险止期")
    private String endYear;

    @ApiModelProperty(value = "投保人姓名")
    private String policyName;

    @ApiModelProperty(value = "投保人证件号码")
    private String policyCardNo;

    @ApiModelProperty(value = "投保人电话")
    private String policyMobile;

    @ApiModelProperty(value = "被保险人名称")
    private String insuredName;

    @ApiModelProperty(value = "被保险人证件号码")
    private String insuredCardNo;

    @ApiModelProperty(value = "推广人姓名")
    private String marketerName;

    @ApiModelProperty(value = "保单金额")
    private String prem;

    @ApiModelProperty(value = "被保人学校名称")
    private String insuredSchool;

    @ApiModelProperty(value = "被保人年级: 一年级|二年级|三年级|四年级|五年级|六年级")
    private String insuredGrade;

    @ApiModelProperty(value = "被保人班级")
    private String insuredClass;

    @ApiModelProperty(value = "0未投保  1投保成功  2投保失败,3超时,4投保成功但是修改状态失败")
    private String handleStatusDesc;

    public InsBatchDto(InsBatchEntity insBatchEntity) {
        this.proName = insBatchEntity.getProName();
        this.orderNo = insBatchEntity.getOrderNo();
        this.policyNo = insBatchEntity.getPolicyNo();
        this.tbNo = insBatchEntity.getTbNo();
        this.tbTime = insBatchEntity.getTbTime();
        this.startYear = insBatchEntity.getStartYear();
        this.endYear = insBatchEntity.getEndYear();
        this.policyName = insBatchEntity.getPolicyName();
        this.policyCardNo = insBatchEntity.getPolicyCardNo();
        this.policyMobile = insBatchEntity.getPolicyMobile();
        this.insuredName = insBatchEntity.getInsuredName();
        this.insuredCardNo = insBatchEntity.getInsuredCardNo();
        this.marketerName = insBatchEntity.getMarketerName();
        this.prem = insBatchEntity.getPrem();
        this.insuredSchool = insBatchEntity.getInsuredSchool();
        this.insuredGrade = insBatchEntity.getInsuredGrade();
        this.insuredClass = insBatchEntity.getInsuredClass();
        this.handleStatusDesc = HandlerStatusEnum.getMsgByCode(insBatchEntity.getHandleStatus());
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getPolicyNo() {
        return policyNo;
    }

    public void setPolicyNo(String policyNo) {
        this.policyNo = policyNo;
    }

    public String getTbNo() {
        return tbNo;
    }

    public void setTbNo(String tbNo) {
        this.tbNo = tbNo;
    }

    public Date getTbTime() {
        return tbTime;
    }

    public void setTbTime(Date tbTime) {
        this.tbTime = tbTime;
    }

    public String getStartYear() {
        return startYear;
    }

    public void setStartYear(String startYear) {
        this.startYear = startYear;
    }

    public String getEndYear() {
        return endYear;
    }

    public void setEndYear(String endYear) {
        this.endYear = endYear;
    }

    public String getPolicyName() {
        return policyName;
    }

    public void setPolicyName(String policyName) {
        this.policyName = policyName;
    }

    public String getPolicyCardNo() {
        return policyCardNo;
    }

    public void setPolicyCardNo(String policyCardNo) {
        this.policyCardNo = policyCardNo;
    }

    public String getPolicyMobile() {
        return policyMobile;
    }

    public void setPolicyMobile(String policyMobile) {
        this.policyMobile = policyMobile;
    }

    public String getInsuredName() {
        return insuredName;
    }

    public void setInsuredName(String insuredName) {
        this.insuredName = insuredName;
    }

    public String getInsuredCardNo() {
        return insuredCardNo;
    }

    public void setInsuredCardNo(String insuredCardNo) {
        this.insuredCardNo = insuredCardNo;
    }

    public String getMarketerName() {
        return marketerName;
    }

    public void setMarketerName(String marketerName) {
        this.marketerName = marketerName;
    }

    public String getPrem() {
        return prem;
    }

    public void setPrem(String prem) {
        this.prem = prem;
    }

    public String getInsuredSchool() {
        return insuredSchool;
    }

    public void setInsuredSchool(String insuredSchool) {
        this.insuredSchool = insuredSchool;
    }

    public String getInsuredGrade() {
        return insuredGrade;
    }

    public void setInsuredGrade(String insuredGrade) {
        this.insuredGrade = insuredGrade;
    }

    public String getInsuredClass() {
        return insuredClass;
    }

    public void setInsuredClass(String insuredClass) {
        this.insuredClass = insuredClass;
    }

    public String getHandleStatusDesc() {
        return handleStatusDesc;
    }

    public void setHandleStatusDesc(String handleStatusDesc) {
        this.handleStatusDesc = handleStatusDesc;
    }
}